package com.ssi.action.manage;

import com.ssi.action.CommonAction;
import com.ssi.domain.user.User;
import com.ssi.service.goods.GoodsService;
import com.ssi.service.goodstype.GoodstypeService;
import com.ssi.service.shop.ShopService;
import com.ssi.service.user.UserService;

public class ManageAction extends CommonAction{
	private ShopService shopService;
	private GoodstypeService goodstypeService;
	private GoodsService goodsService;
	private UserService userService;
	
	public ShopService getShopService() {
		return shopService;
	}

	public void setShopService(ShopService shopService) {
		this.shopService = shopService;
	}

	public GoodstypeService getGoodstypeService() {
		return goodstypeService;
	}

	public void setGoodstypeService(GoodstypeService goodstypeService) {
		this.goodstypeService = goodstypeService;
	}

	public GoodsService getGoodsService() {
		return goodsService;
	}

	public void setGoodsService(GoodsService goodsService) {
		this.goodsService = goodsService;
	}

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public String entryManage(){
		User user = (User) getSessionAttribute("user");
		if(user!=null){
			return "entryManage";
		}else{
			return "logout";
		}
		
		
	}
	public String leftManage(){
		User user = (User) getSessionAttribute("user");
		System.out.println("leftManage");
		if(user!=null){
			return "leftManage";
		}else{
			return "logout";
		}
		
		
	}
	public String topManage(){
		User user = (User) getSessionAttribute("user");
		System.out.println("topManage");
		if(user!=null){
			return "topManage";
		}else{
			return "logout";
		}
		
		
	}
	public String bottomManage(){
		User user = (User) getSessionAttribute("user");
		System.out.println("bottomManage");
		if(user!=null){
			return "bottomManage";
		}else{
			return "logout";
		}
		
		
	}
	public String mainManage(){
		User user = (User) getSessionAttribute("user");
		System.out.println("mainManage");
		if(user!=null){
			return "mainManage";
		}else{
			return "logout";
		}
		
		
	}
	
}
